<?php $form = $this->beginWidget('CActiveForm'); ?>
<div class="row">
	<div class="span12">
		<fieldset>  
			<legend>Tạo sản phẩm mới</legend>  
			<div class='clearfix'>
				<label for="name">Tiêu đề</label>
				<div class='input'>
					<?php echo $form->textField($model, 'title', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'title'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Mã số</label>
				<div class='input'>
					<?php echo $form->textField($model, 'code', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'code'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Ghi chú</label>
				<div class='input'>
					<?php echo CHtml::activeTextArea($model, 'description', array('rows' => 5, 'cols' => 500, 'class' => 'span8')); ?>
					<?php echo $form->error($model, 'description'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Link</label>
				<div class='input'>
					<?php echo $form->textField($model, 'link', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'link'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Giá</label>
				<div class='input'>
					<?php echo $form->textField($model, 'price', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'price'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<div class='input'>
					<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn info')); ?>
				</div>
			</div>

		</fieldset> 
	</div>
</div>
<?php $this->endWidget(); ?>